#ifndef ShellTool_First
#define ShellTool_First
#ifdef __GNUG__
#pragma interface
#endif

#include "Manager.h"

class ShellTextView;
class CommandProcessor;
class Clipper;
class Text;
class Data;
class Menu;
class Font;

extern const int cSHOWERR;

//---- ShellTool ---------------------------------------------------------------

class ShellTool : public Manager {
public:
	MetaDef(ShellTool);
	ShellTool();
	~ShellTool();
	VObject *DoMakeContent();
	Point GetInitialWindowSize();
	MenuBar *DoMakeMenuBar();

	void Control(int id, int, void *);
	void ExtCommand(int from, char *req, char *args, int, char*&, int&);
	void ShellExecute(const char *cmd);
	void DoSetupMenu(Menu *m);

protected:
	static int shellcnt;
	ShellTextView *view;
	Clipper *shClipper;
	Text *text;
	Font *fd;
	int cnt;
};

#endif

